package com.meixiang.entity.shopping;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 店铺
 *
 * @author LZRUI
 */
public class StoreEntity implements Parcelable {

    private String storeId; // 店铺id
    private String storeName; // 店铺名称
    private String goodsCount; // 商品数量

    public String getStoreId() {
        return storeId == null ? "" : storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName == null ? "" : storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getGoodsCount() {
        return goodsCount == null ? "0" : goodsCount;
    }

    public void setGoodsCount(String storeCount) {
        this.goodsCount = storeCount;
    }

    public StoreEntity() {

    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.storeId);
        dest.writeString(this.storeName);
        dest.writeString(this.goodsCount);
    }

    protected StoreEntity(Parcel in) {
        this.storeId = in.readString();
        this.storeName = in.readString();
        this.goodsCount = in.readString();
    }

    public static final Creator<StoreEntity> CREATOR = new Creator<StoreEntity>() {
        @Override
        public StoreEntity createFromParcel(Parcel source) {
            return new StoreEntity(source);
        }

        @Override
        public StoreEntity[] newArray(int size) {
            return new StoreEntity[size];
        }
    };
}
